package com.zhang.springcloud.service.impl;

import com.zhang.springcloud.dao.StorageDao;
import com.zhang.springcloud.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StorageServiceImpl implements StorageService {
    @Resource
    StorageDao sd;
    @Override
    public void decrease(Long productId, Integer count) {
        sd.decrease(productId,count);
    }
}
